package com.book.controller;


import com.book.pojo.Dictionaries;
import com.book.service.DictionariesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fk
 * @since 2023-10-12 14:58:28
 */
@RestController
@RequestMapping("/dictionaries")
public class DictionariesController {

    @Autowired
    private DictionariesService dictionariesService;

    @GetMapping("/getByType")
    public List<Dictionaries> getByType(String dictionariesType){
        return dictionariesService.getByType(dictionariesType);
    }

}
